using MongoDB.Bson.Serialization.Attributes;

namespace IMServer.Models.Message
{
    [BsonDiscriminator("ChatMessage")]
    public class ChatMessage : BaseMessage
    {
        [BsonElement("chatType")]
        public string ChatType { get; set; } = "private";  // private 或 group

        [BsonElement("contentType")]
        public string ContentType { get; set; } = "text";  // text, image, file 等

        public override string MessageType { get; set; } = "CHAT";

        public ChatMessage()
        {
            MessageType = "CHAT";
        }
    }
}
